package com.dxb.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author Administrator
 */
@PropertySource(value = "config/parent.yml", factory = YamlPropertySourceFactory.class)
@Configuration
@Data
public class ParentConfig {

    public ParentConfig() {
        System.out.println("ParentConfig");
    }

    @Value("${com.dxb.config}")
    private String config;
}
